import { CouresEnum } from "@/enums/school/course.enum";
import { WEEK_DAYS } from "../config/index";
import type { DetailType } from "./editModalCard.type";

export type WeekValueType = (typeof WEEK_DAYS)[number]["value"];

export type WeekDayType = {
  label: string;
  value: string;
  data?: TableDataType[];
};
export type WeeksType = {
  weeks: { index: number; week: WeekValueType };
};
export type CoursesType = {
  courses?: {
    bgColor: string;
    label: string;
    value: string;
  };
};
export type TableDataType = {
  node?: HTMLElement;
} & WeeksType &
  CoursesType;

export type PropsType = {
  echoData?: DetailType[];
};

export type SubmitDataType = {
  week: WeekValueType;
  course: `${CouresEnum}`;
  index: number;
  node?: HTMLElement;
};

export type CardRefType = {
  onSubmit: () => SubmitDataType[];
};
